﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PointTracker.Controls
{
    public partial class TopToolbarLogout : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            User u = (User)Session["User"];
            if (u.role == UserRole.Professor)
                topName.Text = "Welcome, Dr. " + u.lname;
            else
                topName.Text = "Welcome " + u.fname;
        }
    }
}